package org.demo.pattern.flyweight;
/**
 * 
 * @author  
 * @date    2011-5-20
 * @file    org.demo.pattern.flyweight.Artist.java
 */
public class Artist {
	
	private String name;
	
	/**
	 * 构造函数
	 * @param name
	 */
	public Artist(String name) {
		super();
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}	
	
	@Override
	public String toString() {
		return name;
	}
}
